<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>设备类型</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form" wid100>
  <input type="hidden" name="id" value="$!{id}"/>
  <div class="layui-card">
    <div class="layui-card-body">
      <div class="layui-row">
        <div class="layui-col-sm3">
          #if($thumbnailImg)
          <div style="width:150px;max-height:150px;overflow:hidden;margin:auto;"><img src="$!{resDomain}$!{thumbnailImg}" style="width:100%;"></div>
          #else
          <div style="width:150px;max-height:150px;overflow:hidden;margin:auto;"><img src="$!{webRoot}/layuiadmin/style/res/default01.png" style="width:100%;"></div>
          #end
        </div>
        <div class="layui-col-sm9">
          <div class="layui-row">
            <div class="layui-col-sm6">
              <div class="layui-form-item">
                <label class="layui-form-label">类型ID</label>
                <div class="layui-form-mid layui-word-aux">$!{id}</div>
              </div>
            </div>
            <div class="layui-col-sm6">
              <div class="layui-form-item">
                <label class="layui-form-label">类型名称</label>
                <div class="layui-form-mid layui-word-aux">$!{name}</div>
              </div>
            </div>
          </div>
          <div class="layui-row">
            <div class="layui-col-sm6">
              <div class="layui-form-item">
                <label class="layui-form-label">联网类型</label>
                <div class="layui-form-mid layui-word-aux">$!{networkTypeName}</div>
              </div>
            </div>
            <div class="layui-col-sm6">
              <div class="layui-form-item">
                <label class="layui-form-label">当前生产批次</label>
                <div class="layui-form-mid layui-word-aux">$!{produceBatchIndex}</div>
              </div>
            </div>
          </div>
          <div class="layui-row">
            <div class="layui-col-sm12">
              <div class="layui-form-item">
                <label class="layui-form-label">类型描述</label>
                <div class="layui-form-mid layui-word-aux">$!{note}</div>
              </div>
            </div>
        </div>
      </div>
    </div><!-- /.layui-card-body -->
  </div><!-- /.layui-card -->
  <div class="layui-tab layui-tab-card" lay-filter="tab-info">
      <ul class="layui-tab-title">
        <li class="layui-this">功能列表</li>
        <li>固件升级包</li>
      </ul>
      <div class="layui-tab-content" style="padding:0;">
        <div class="layui-tab-item layui-show">
          <div class="layui-card-body">
            <div style="padding-bottom: 10px;">
              <button class="layui-btn layui-btn-sm LAY-btn-fun" data-type="add">新增</button>
            </div>
            <table id="LAY-table" lay-filter="LAY-table"></table>
            <script type="text/html" id="LAY-table-toolbar">
              <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="update">修改</a>
              <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
            </script>
          </div>
        </div>
        <div class="layui-tab-item">
          <div class="layui-card-body">
            <div style="padding-bottom: 10px;">
              <button class="layui-btn layui-btn-sm LAY-btn-fun" data-type="addVersion">新增</button>
            </div>
            <table id="LAY-table-version" lay-filter="LAY-table-version"></table>
            <script type="text/html" id="LAY-table-version-toolbar">
              <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="updateVersion">修改</a>
              <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delVersion">删除</a>
            </script>
          </div>
        </div>
      </div>
   </div>
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/'
  ,webRoot:'$!{webRoot}'
  ,resDomain:'$!{resDomain}'
}).extend({
  index: 'lib/index'
  ,device_type_info:'device/device_type_info'
}).use(['index', 'form', 'device_type_info'])
</script>
</body>
</html>